import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/regist',
    name: 'regist',
    component: () => import('../views/regist.vue')
  },
  {
    path: '/destination',
    name: 'destination',
    component: () => import('../views/destination.vue')
  },
  {
    path: '/strategy_index',
    name: 'strategy_index',
    component: () => import('../views/strategy_index.vue')
  },
  {
    path: '/strategy_detail',
    name: 'strategy_detail',
    component: () => import('../views/strategy_detail.vue')
  },
  {
    path: '/travel_index',
    name: 'travel_index',
    component: () => import('../views/travel_index.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
